#define _CRT_SECURE_NO_WARNINGS 1
#include <initializer_list>
#include <iostream>
#include <vector>
using namespace std;

void test01()
{
	auto i1 = { 10, 20, 30};
	auto i2 = { 10.1, 20.4, 30.7, 40.6, 50.5};
	cout << typeid(i1).name() << endl;
	cout << typeid(i2).name() << endl;
	for (auto& e : i1)
	{
		cout << e << " ";
	}
	cout << endl;
	for (auto& e : i2)
	{
		cout << e << " ";
	}

	//vector<int> v1({ 10, 20, 30 });
	//vector<double> v2({ 10.1, 20.4, 30.7, 40.6, 50.5 });
	vector<int> v1 = { 10, 20, 30 };
	vector<double> v2 = { 10.1, 20.4, 30.7, 40.6, 50.5 };
}
int main()
{
	test01();
	return 0;
}